home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-PPC / CUDA.H < prev    next >
Text File  |  1999-09-17  |  1KB  |  48 lines

  1. /*
  2.  * Definitions for talking to the CUDA.  The CUDA is a microcontroller
  3.  * which controls the ADB, system power, RTC, and various other things.
  4.  *
  5.  * Copyright (C) 1996 Paul Mackerras.
  6.  */
  7.  
  8. /* First byte sent to or received from CUDA */
  9. #define ADB_PACKET    0
  10. #define CUDA_PACKET    1
  11. #define ERROR_PACKET    2
  12. #define TIMER_PACKET    3
  13. #define POWER_PACKET    4
  14. #define MACIIC_PACKET    5
  15. #define PMU_PACKET    6
  16.  
  17. /* CUDA commands (2nd byte) */
  18. #define CUDA_WARM_START        0
  19. #define CUDA_AUTOPOLL        1
  20. #define CUDA_GET_6805_ADDR    2
  21. #define CUDA_GET_TIME        3
  22. #define CUDA_GET_PRAM        7
  23. #define CUDA_SET_6805_ADDR    8
  24. #define CUDA_SET_TIME        9
  25. #define CUDA_POWERDOWN        0xa
  26. #define CUDA_POWERUP_TIME    0xb
  27. #define CUDA_SET_PRAM        0xc
  28. #define CUDA_MS_RESET        0xd
  29. #define CUDA_SEND_DFAC        0xe
  30. #define CUDA_RESET_SYSTEM    0x11
  31. #define CUDA_SET_IPL        0x12
  32. #define CUDA_SET_AUTO_RATE    0x14
  33. #define CUDA_GET_AUTO_RATE    0x16
  34. #define CUDA_SET_DEVICE_LIST    0x19
  35. #define CUDA_GET_DEVICE_LIST    0x1a
  36. #define CUDA_GET_SET_IIC    0x22
  37.  
  38. #ifdef __KERNEL__
  39.  
  40. void find_via_cuda(void);
  41. void via_cuda_init(void);
  42. int cuda_request(struct adb_request *req,
  43.          void (*done)(struct adb_request *), int nbytes, ...);
  44. int cuda_send_request(struct adb_request *req);
  45. void cuda_poll(void);
  46.  
  47. #endif    /* __KERNEL */
  48.